.class Lcom/waiqin365/lightapp/kehu/hc;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 6

    const v5, 0x7f0805d3

    const/4 v1, 0x0

    add-int/lit8 v0, p3, -0x1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->e(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_0

    add-int/lit8 v2, p3, -0x1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->e(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/am;

    iget v3, v0, Lcom/waiqin365/lightapp/kehu/b/am;->t:I

    const/16 v4, 0xd

    if-eq v3, v4, :cond_0

    iget v3, v0, Lcom/waiqin365/lightapp/kehu/b/am;->t:I

    const/16 v4, 0xe

    if-ne v3, v4, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    new-instance v3, Lcom/waiqin365/lightapp/kehu/b/am;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/kehu/b/am;-><init>()V

    iget-boolean v3, v0, Lcom/waiqin365/lightapp/kehu/b/am;->s:Z

    if-eqz v3, :cond_4

    iput-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->s:Z

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v3}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->e(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v2, v0}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->f(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Lcom/waiqin365/lightapp/kehu/b/ap;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightapp/kehu/b/ap;->notifyDataSetChanged()V

    move v2, v1

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->i(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->i(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/b/am;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    iget-object v3, v0, Lcom/waiqin365/lightapp/kehu/b/am;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->i(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    :cond_2
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_1

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->h(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-virtual {v2, v5}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->i(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->h(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-virtual {v2, v5}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, "("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v2}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->i(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ")"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    goto/16 :goto_0

    :cond_4
    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/lightapp/kehu/b/am;->s:Z

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->e(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v2, v0}, Ljava/util/ArrayList;->set(ILjava/lang/Object;)Ljava/lang/Object;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v1}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->i(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/hc;->a:Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;->f(Lcom/waiqin365/lightapp/kehu/CMSearchingMultiModeActivity;)Lcom/waiqin365/lightapp/kehu/b/ap;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/b/ap;->notifyDataSetChanged()V

    goto :goto_2
.end method
